<template>
  <div>
    <el-container class="max">
      <el-header class="navbar">
        <img src="../assets/leftlogo.png" alt="" width="88" />

        <!-- 右边情况 -->
        <div class="right-user">
          <img src="../assets/touxiang.png" alt="" style="margin-right: 20px" />
          <div style="margin-right: 20px">欢迎您,admin</div>
          <el-tooltip
            class="item"
            effect="light"
            content="退出登录"
            placement="bottom"
          >
          <div><span>退出▼</span></div>
          </el-tooltip>
        </div>
      </el-header>
      <el-container style="height:100vh">
        <el-aside width="200px" class="el-aside">
          <!-- <el-col :span="24"> -->
            <el-menu
              default-active="2"
              class="el-menu-vertical-demo"
              @open="handleOpen"
              @close="handleClose"
              background-color="#fff"
              text-color="rgb(0,0,0)"
              active-text-color="#ffd04b"
              unique-opened
            >
              <!-- 帝可得 -->
              <el-menu-item index="1">
                <i class="iconfont icon-zhuye"></i>
                <span slot="title">帝可得</span>
              </el-menu-item>
              <!-- 工单管理 -->
              <el-submenu index="1">
                <template slot="title">
                  <i class="iconfont icon-gongdan"></i>
                  <span>工单管理</span>
                </template>
                <el-menu-item-group>
                  <!-- <template slot="title">分组一</template> -->
                  <el-menu-item index="1-1">运营工单</el-menu-item>
                  <el-menu-item index="1-2">运维工单</el-menu-item>
                </el-menu-item-group>
              </el-submenu>
              <!-- 点位管理 -->
              <el-submenu index="2">
                <template slot="title">
                  <i class="iconfont icon-dianweiguanli"></i>
                  <span>点位管理</span>
                </template>
                <el-menu-item-group>
                  <!-- <template slot="title">分组一</template> -->
                  <el-menu-item index="2-1">区域管理</el-menu-item>
                  <el-menu-item index="2-2">点位管理</el-menu-item>
                  <el-menu-item index="2-2">合作商管理</el-menu-item>
                </el-menu-item-group>
              </el-submenu>
              <!-- 设备管理 -->
              <el-submenu index="3">
                <template slot="title">
                  <i class="iconfont icon-shebei"></i>
                  <span>设备管理</span>
                </template>
                <el-menu-item-group>
                  <!-- <template slot="title">分组一</template> -->
                  <el-menu-item index="3-1">设备管理</el-menu-item>
                  <el-menu-item index="3-2">设备状态</el-menu-item>
                  <el-menu-item index="3-2">设备类型管理</el-menu-item>
                </el-menu-item-group>
              </el-submenu>
              <!-- 人员管理 -->
              <el-submenu index="4">
                <template slot="title">
                  <i class="el-icon-fork-spoon"></i>
                  <span>人员管理</span>
                </template>
                <el-menu-item-group>
                  <!-- <template slot="title">分组一</template> -->
                  <el-menu-item index="4-1">人员列表</el-menu-item>
                  <el-menu-item index="4-2">人效统计</el-menu-item>
                  <el-menu-item index="4-2">工作量列表</el-menu-item>
                </el-menu-item-group>
              </el-submenu>
              <!-- 商品管理 -->
              <el-submenu index="5">
                <template slot="title">
                  <i class="iconfont icon-xitongmoxingchajian"></i>
                  <span>商品管理</span>
                </template>
                <el-menu-item-group>
                  <!-- <template slot="title">分组一</template> -->
                  <el-menu-item index="5-1">商品类型</el-menu-item>
                  <el-menu-item index="5-2">商品管理</el-menu-item>
                </el-menu-item-group>
              </el-submenu>
              <!-- 策略管理 -->
              <el-menu-item index="234">
                <i class="iconfont icon-zhuyi"></i>
                <span slot="title">策略管理</span>
              </el-menu-item>
              <!-- 订单管理 -->
              <el-menu-item index="345">
                <i class="iconfont icon-dingdan"></i>
                <span slot="title">订单管理</span>
              </el-menu-item>
              <!-- 对账统计 -->
              <el-menu-item index="456">
                <i class="el-icon-document"></i>
                <span slot="title">对账统计</span>
              </el-menu-item>
            </el-menu>
          <!-- </el-col> -->
        </el-aside>
        <el-main>
          <!-- <router-view></router-view> -->
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  methods: {
    handleOpen () {},
    handleClose () {}
  }
}
</script>

<style lang="scss" scoped>
.right-user {
  display: flex;
  align-items: center;
  margin-right: 24px;

  color: #fff;
}
.max {
  height: 100vh;
}
.navbar {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-image: url();
  background-size: cover;
  background-repeat: no-repeat;
}
.el-aside {
  // width: 167px !important;
  // height: 100vh;
  width: 167px;
  min-height: calc(100% - 60px);
  font-size: 0;
  top: 60px;
  bottom: 0;
  left: 0;
  background-color: red;
  // height: 100vh;
  .iconfont {
    margin-right: 10px;
  }
}
// .sidebar-container {
//     width: 167px!important;
//     min-height: calc(100% - 60px);
//     position: fixed;
//     font-size: 0;
//     top: 60px;
//     bottom: 0;
//     left: 0;
//     z-index: 1001;
//     overflow: hidden;
// }
</style>
